﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///编码规则
    ///</summary>
    [SugarTable("DBO.t_BarCodeRules")]
    public partial class t_BarCodeRules
    {
        public t_BarCodeRules()
        {


        }
        /// <summary>
        /// Desc:自增Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:编码规则名称
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string Name { get; set; }

        /// <summary>
        /// Desc:类型枚举
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int Type { get; set; }

        /// <summary>
        /// Desc:规则描述
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? RuleDescription { get; set; }

        /// <summary>
        /// Desc:条码规则
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BarCodeRules { get; set; }

        /// <summary>
        /// Desc:最大值
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? MaxNumber { get; set; }

        /// <summary>
        /// Desc:序列号样例
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Sample { get; set; }

        /// <summary>
        /// Desc:流水号位数
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? NumberLength { get; set; }

        /// <summary>
        /// Desc:流水号起始
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? StartNumber { get; set; }

        /// <summary>
        /// Desc:流水号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Number { get; set; }

        /// <summary>
        /// Desc:是否启用
        /// Default:
        /// Nullable:True
        /// </summary>           
        public bool? IsEnable { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// Desc:创建人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// Desc:修改人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ModifyUserId { get; set; }

        /// <summary>
        /// Desc:修改人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ModifyUserName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Code { get; set; }

    }
}
